<div class="problemindexholder" problemindex="A">
 <div class="ttypography">
  <div class="problem-statement">
   <div class="header">
    <div class="title">
     A. Fraction
    </div>
    <div class="time-limit">
     <div class="property-title">
      time limit per test
     </div>
     1 second
    </div>
    <div class="memory-limit">
     <div class="property-title">
      memory limit per test
     </div>
     512 megabytes
    </div>
    <div class="input-file">
     <div class="property-title">
      input
     </div>
     standard input
    </div>
    <div class="output-file">
     <div class="property-title">
      output
     </div>
     standard output
    </div>
   </div>
   <div>
    <p>
     Petya is a big fan of mathematics, especially its part related to fractions. Recently he learned that a fraction
     <img align="middle" class="tex-formula" src="/predownloaded/07/6e/076e1f84b6b8c82b3e3979815b13e3685da131f9.png" style="max-width: 100.0%;max-height: 100.0%;"/>
     is called
     <span class="tex-font-style-it">
      proper
     </span>
     iff its numerator is smaller than its denominator (
     <span class="tex-span">
      <i>
       a
      </i>
      &lt;
      <i>
       b
      </i>
     </span>
     ) and that the fraction is called
     <span class="tex-font-style-it">
      irreducible
     </span>
     if its numerator and its denominator are coprime (they do not have positive common divisors except
     <span class="tex-span">
      1
     </span>
     ).
    </p>
    <p>
     During his free time, Petya thinks about proper irreducible fractions and converts them to decimals using the calculator. One day he mistakenly pressed addition button (
     <span class="tex-span">
      +
     </span>
     ) instead of division button (
     <span class="tex-span">
      ÷
     </span>
     ) and got sum of numerator and denominator that was equal to
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     instead of the expected decimal notation.
    </p>
    <p>
     Petya wanted to restore the original fraction, but soon he realized that it might not be done uniquely. That's why he decided to determine maximum possible proper irreducible fraction
     <img align="middle" class="tex-formula" src="/predownloaded/07/6e/076e1f84b6b8c82b3e3979815b13e3685da131f9.png" style="max-width: 100.0%;max-height: 100.0%;"/>
     such that sum of its numerator and denominator equals
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     . Help Petya deal with this problem.
    </p>
    <p>
    </p>
   </div>
   <div class="input-specification">
    <div class="section-title">
     Input
    </div>
    <p>
     In the only line of input there is an integer
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     (
     <span class="tex-span">
      3 ≤
      <i>
       n
      </i>
      ≤ 1000
     </span>
     ), the sum of numerator and denominator of the fraction.
    </p>
   </div>
   <div class="output-specification">
    <div class="section-title">
     Output
    </div>
    <p>
     Output two space-separated positive integers
     <span class="tex-span">
      <i>
       a
      </i>
     </span>
     and
     <span class="tex-span">
      <i>
       b
      </i>
     </span>
     , numerator and denominator of the maximum possible proper irreducible fraction satisfying the given sum.
    </p>
   </div>
   <div class="sample-tests">
    <div class="section-title">
     Examples
    </div>
    <div class="sample-test">
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>3<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>1 2<br/></pre>
     </div>
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>4<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>1 3<br/></pre>
     </div>
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>12<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>5 7<br/></pre>
     </div>
    </div>
   </div>
  </div>
  <p>
  </p>
 </div>
</div>
